<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
    <base href="<%=basePath%>">
    <!-- 下拉框 -->
    <link rel="stylesheet" href="static/ace/css/chosen.css" />
    <!-- jsp文件头和头部 -->
    <%@ include file="../../system/index/top.jsp"%>
</head>
<body class="no-skin">
<!-- /section:basics/navbar.layout -->
<div class="main-container" id="main-container">
    <!-- /section:basics/sidebar -->
    <div class="main-content">
        <div class="main-content-inner">
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <form action="${actionUrl}" name="form" id="form" method="post">
                            <input type="hidden" name="id" id="id" value="${articleInfo.id}"/>
                            <div id="zhongxin" style="padding-top: 13px;">
                                <table id="table_report" class="table table-striped table-bordered table-hover">
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;"><font color="red">*</font>圈子：</td>
                                        <td style="width:80%" id="circleIdSelect">
                                            <select class="chosen-select form-control" name="circleId" id="circleId" disabled="disabled" data-placeholder="这里选择圈子" style="width:120px;">
                                                <option value="" <c:if test="${empty articleInfo.circleId}">selected</c:if>></option>
                                                <c:forEach items="${circleInfoList}" var="circleInfo">
                                                    <option value="${circleInfo.id}" <c:if test="${circleInfo.id eq articleInfo.circleId}">selected</c:if>>${circleInfo.circleName}</option>
                                                </c:forEach>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;"><font color="red">*</font>作者：</td>
                                        <td style="width:80%;">
                                            <input type="text" name="nickName" id="nickName" value="${articleInfo.nickName}" readonly="readonly" placeholder="这里输入作者" title="作者" style="width:98%;"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;"><font color="red">*</font>创建时间：</td>
                                        <td style="width:80%;">
                                            <input type="text" name="createTime" id="createTime" value="${articleInfo.createTimeFormat}" readonly="readonly" placeholder="这里输入创建时间" title="创建时间" style="width:98%;"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;"><font color="red">*</font>文章标题：</td>
                                        <td style="width:80%;">
                                            <input type="text" name="title" id="title" value="${articleInfo.title}" readonly="readonly" placeholder="这里输入文章标题" title="文章标题" style="width:98%;"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;"><font color="red">*</font>免费部分内容：</td>
                                        <td style="width:80%;">
                                            <textarea style="height: 200px; width: 790px;" id="freeContent" name="freeContent" placeholder="这里输入免费部分内容" title="免费部分内容">${articleInfo.freeContent}</textarea>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;"><font color="red">*</font>收费部分内容：</td>
                                        <td style="width:80%;">
                                            <textarea style="height: 200px; width: 790px;" id="chargeContent" name="chargeContent" placeholder="这里输入收费部分内容" title="收费部分内容">${articleInfo.chargeContent}</textarea>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;"><font color="red">*</font>是否推广：</td>
                                        <td style="width:80%" id="isPromotionSelect">
                                            <select class="chosen-select form-control" name="isPromotion" id="isPromotion" disabled="disabled" data-placeholder="这里选择是否推广" style="width:120px;">
                                                <option value="" <c:if test="${empty articleInfo.isPromotion}">selected</c:if>></option>
                                                <c:forEach items="${isPromotionList}" var="isPromotionItem">
                                                    <option value="${isPromotionItem.value}" <c:if test="${isPromotionItem.value eq articleInfo.isPromotion}">selected</c:if>>${isPromotionItem.description}</option>
                                                </c:forEach>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;"><font color="red">*</font>是否进热帖：</td>
                                        <td style="width:80%" id="isHotSelect">
                                            <select class="chosen-select form-control" name="isHot" id="isHot" disabled="disabled" data-placeholder="这里选择是否进热帖" style="width:120px;">
                                                <option value="" <c:if test="${empty articleInfo.isHot}">selected</c:if>></option>
                                                <c:forEach items="${isHotList}" var="isHotItem">
                                                    <option value="${isHotItem.value}" <c:if test="${isHotItem.value eq articleInfo.isHot}">selected</c:if>>${isHotItem.description}</option>
                                                </c:forEach>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;"><font color="red">*</font>是否置顶：</td>
                                        <td style="width:80%" id="isTopSelect">
                                            <select class="chosen-select form-control" name="isTop" id="isTop" disabled="disabled" data-placeholder="这里选择是否置顶" style="width:120px;">
                                                <option value="" <c:if test="${empty articleInfo.isTop}">selected</c:if>></option>
                                                <c:forEach items="${isTopList}" var="isTopItem">
                                                    <option value="${isTopItem.value}" <c:if test="${isTopItem.value eq articleInfo.isTop}">selected</c:if>>${isTopItem.description}</option>
                                                </c:forEach>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;"><font color="red">*</font>是否收费：</td>
                                        <td style="width:80%" id="isChargeSelect">
                                            <select class="chosen-select form-control" name="isCharge" id="isCharge" disabled="disabled" data-placeholder="这里选择是否收费" style="width:120px;">
                                                <option value="" <c:if test="${empty articleInfo.isCharge}">selected</c:if>></option>
                                                <c:forEach items="${isChargeList}" var="isChargeItem">
                                                    <option value="${isChargeItem.value}" <c:if test="${isChargeItem.value eq articleInfo.isCharge}">selected</c:if>>${isChargeItem.description}</option>
                                                </c:forEach>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;"><font color="red">*</font>收费金额(金币)：</td>
                                        <td style="width:80%;">
                                            <input type="text" name="chargeAmount" id="chargeAmount" value="${articleInfo.chargeAmount}" readonly="readonly" placeholder="这里输入收费金额" title="收费金额" style="width:98%;"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;"><font color="red">*</font>公开时间：</td>
                                        <td style="width:80%;">
                                            <input type="text" name="publicTime" id="publicTime" value="${articleInfo.publicTimeFormat}" readonly="readonly" placeholder="这里输入公开时间" title="公开时间" style="width:98%;"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:20%;text-align: right;padding-top: 13px;"><font color="red">*</font>审核状态：</td>
                                        <td style="width:80%" id="articleStateSelect">
                                            <select class="chosen-select form-control" name="articleState" id="articleState" disabled="disabled" data-placeholder="这里选择审核状态" style="width:120px;">
                                                <option value="" <c:if test="${empty articleInfo.articleState}">selected</c:if>></option>
                                                <c:forEach items="${articleStateList}" var="articleStateItem">
                                                    <option value="${articleStateItem.value}" <c:if test="${articleStateItem.value eq articleInfo.articleState}">selected</c:if>>${articleStateItem.description}</option>
                                                </c:forEach>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td id="auditReasonTd" style="width:20%;text-align: right;padding-top: 13px;"><c:if test="${articleInfo.articleState eq 2}"><font color="red">*</font></c:if> 审核理由：</td>
                                        <td><textarea id="auditReason" name="auditReason" maxlength="500" title="审核理由" readonly="readonly" placeholder="这里输入审核理由" style="height: 80px; width: 800px;">${articleInfo.auditReason}</textarea></td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: center;" colspan="10">
                                            <a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">关闭</a>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div id="zhongxin2" class="center" style="display:none"><br/><br/><br/><br/><img src="static/images/jiazai.gif" /><br/><h4 class="lighter block green"></h4></div>
                        </form>
                    </div>
                    <!-- /.col -->
                </div>
                <!-- /.row -->
            </div>
            <!-- /.page-content -->
        </div>
    </div>
    <!-- /.main-content -->
</div>
<!-- /.main-container -->
<!-- basic scripts -->
<!-- 页面底部js¨ -->
<%@ include file="../../system/index/foot.jsp"%>
<!-- ace scripts -->
<script src="static/ace/js/ace/ace.js"></script>
<!-- inline scripts related to this page -->
<!-- 模态框 -->
<script src="static/ace/js/bootbox.js"></script>
<!--参数校验-->
<script type="text/javascript" src="static/js/public/validate.js"></script>
<!-- 下拉框 -->
<script src="static/ace/js/chosen.jquery.js"></script>
<!--提示框-->
<script type="text/javascript" src="static/js/jquery.tips.js"></script>
<!-- 富文本编辑器 -->
<script type="text/javascript" src="plugins/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="plugins/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" src="plugins/ueditor/lang/zh-cn/zh-cn.js"></script>
<%-- 本业务js --%>
<script type="text/javascript" src="static/js/admin/article/articleInfo/detail.js"></script>
</body>
<script type="text/javascript">
    $(top.hangge());
</script>
</html>
